<?php

namespace Xrfg\Api\Trading\Spot\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class DepthRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'symbol' => ['required', Rule::exists('trading_spot_pairs', 'symbol')],
            'size' => ['nullable', 'integer', 'max:100'],
        ];
    }
}
